package org.cuatrovientos.empirefleet;

/**
 * 	Represents a generic space_ship
 * @author Sienar Fleet Systems
 * @greets the emperor
 */
public class SpaceShip {
	protected int type;
	protected int speed;
	protected int range;
	protected int energy;
	protected String pilotName;
	protected Coordinates cordenades;
	protected int damage;
	
	/**
	 * constructor
	 * @param tipo
	 */
	
	public SpaceShip(int type,
			String pilotName) {
		this.type = type;
		this.speed = 1;
		this.range = 1;
		this.energy = 1;
		this.pilotName = pilotName;
		this.cordenades = new Coordinates(1,1,1);
	}

	/**
	 * "I'm firing my laser"
	 * @return laser damage depending of type
	 */
	public int fireLaser () {
		return damage;
	}
	
	/**
	 * move, more or less depending on type
	 * @return positions
	 */
	public int move () {
		return speed;
	}
}
